import request from '@/lib/request'

export const save = (data) => request({
  url: `/car/`, method: 'post', data
})

export const remove = (params, id) => request({
  url: `/car/${id}/`, method: 'delete', params
})

export const update = (data, id) => request({
  url: `/car/${id}/`, method: 'put', data
})

export const list = (params) => request({
  url: `/car/`, method: 'get', params
})
